<template>
  <div style="height: 100%">
  <el-container style="height: 100%">
    <el-aside width="200px">
      <Menu></Menu>
    </el-aside>
    <el-container>
      <el-header style="width: 600px;margin-left: 20%">
                <span>{{$route.query.pro_ject_id}}</span>
      </el-header>
      <el-main style="font-size:50px ">
      <h2>win mac</h2>
      </el-main>
    </el-container>
  </el-container>
  </div>

</template>

<script>
    import Menu from '../components/Menu.vue'
    import axios from 'axios'
  export default {

  name: "env.vue",
  //  参数 变量数据初始化
  data(){
    return{
    input:'',
     pro_table_date: [
      //    {
      // pro_ject_name: '',
      //  pro_ject_create:'',
      //  pro_ject_time: '',
      //   pro_ject_des: '',
      //   },
     ]
    }
  },
    mounted() {axios.get('http://localhost:8000/get_DATE/').then(res=>{
      this.pro_table_date=res.data
    })
    },

    //函数
    methods:{
     change_search(pro_ject_id){
       alert('项目:'+ pro_ject_id)
     },
     Delete_pro_ject(pr){
       alert('1')
      },
      add_project(){axios.get('http://localhost:8000/add_project/').then(res=>{
        this.pro_table_date=res.data
      })

      },
     },
  //  挂载页面
  components:{
    Menu,
  },

}
</script>

<style >
    .el-table .warning-row {
        background: #d0ab5c;
      }

      .el-table .success-row {
        background: #5d943d;
      }
    .el-header{
        background-color: #B3C0D1;
        color: #333;
        text-align: center;
        line-height: 60px;
      }

  .el-asides {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
  }

  /*.el-mains {*/
  /*  background-color: #E9EEF3;*/
  /*  color: #333;*/
  /*  text-align: center;*/
  /*  line-height: 160px;*/
  /*}*/
</style>